package com.ricohgag.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ricohgag.entity.NewsCatalog;
import com.ricohgag.util.vo.NewsCatalogVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 肖晖
 * @since 2018-08-25
 */
public interface NewsCatalogService extends IService<NewsCatalog> {
    public List<NewsCatalogVo> selectNewsCatalogVo() throws Exception;

    public IPage<NewsCatalog> selectNewsCatalog(Page<NewsCatalog> page) throws Exception;

    public NewsCatalog selectNewsCatalogOne(Integer id) throws Exception;

    public int updateNewsCatalog(NewsCatalog newsCatalog) throws Exception;

    public int insertNewsCatalog(NewsCatalog newsCatalog) throws Exception;

    public int deleteNewsCatalog(int id) throws Exception;
}
